package com.threaddemo1;

public class SleepDemo {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("睡眠前执行");
        Thread.sleep(1 * 1000); //这个时候就发生了阻塞

        System.out.println("睡眠后执行");
    }
}
